import java.io.*;

public class test{
    
    public static void main(String[] args){
        Goods[] goodsList = new Goods[10];
        for(int i=0;i<10;i++) {
            goodsList[i]=new Goods();
        }
        String[] name = {"记事本","稿纸","水笔","铅笔","笔袋","文具盒","直尺","文件夹","手提袋","背包"};
        double[] price= {5.40,1.00,1.50,0.20,17.60,20.00,0.40,3.50,25.00,55.00};
        int[] inventories = {100,70,30,55,40,37,46,65,44,98};

        for(int i=0;i<10;i++) {
            goodsList[i].setName(name[i]);
            goodsList[i].setPrice(price[i]);
            goodsList[i].setInventories(inventories[i]);
        }
        for(int i=0;i<10;i++) {
            goodsList[i].show();
        }
    }
}

class Goods{
    private String name;
    private double price;
    private int inventories;
    public Goods(){
    }
    public void setName(String name){
        this.name = name;
    }
    public void setPrice(double price){
        this.price  = price;
    }
    public void setInventories(int inventories){
        this.inventories = inventories;
    }
    public void show(){
       System.out.println( name + " " + price + " " + inventories );
       
    }
 }